// JavaScript Document

var startDate = new Date();
var endDate = new Date(2012,3,16,12,25);
var spantime = (endDate - startDate)/1000;

function cal(){
    spantime --;
    var d = Math.floor(spantime / (24 * 3600));
    var h = Math.floor((spantime % (24*3600))/3600) + d*24;
    var m = Math.floor((spantime % 3600)/(60));
    var s = Math.floor(spantime%60);
    document.getElementById("singleInfo_remainHours").innerHTML = h;
	document.getElementById("singleInfo_remainMinutes").innerHTML = m;
	document.getElementById("singleInfo_remainSeconds").innerHTML = s;
}

window.onload = function(){

    setInterval(cal, 1000);
}

function singleDetailsDisappear(){
	
	document.getElementById("singleDetails").style.display = "none";
    document.getElementById("singleComments").style.display = "block";

	
	}
	
function singleCommentsDisappear(){
	
	document.getElementById("singleDetails").style.display = "block";
    document.getElementById("singleComments").style.display = "none";

	
	}